package weaver.jobs.hoda;

import weaver.common.DateUtil;
import weaver.conn.RecordSet;
import weaver.general.BaseBean;
import weaver.general.Util;
import weaver.interfaces.schedule.BaseCronJob;


/**
 * @Title: ecology-idea
 * @Company: 泛微软件
 * @author: weaver.Dusongsong
 * @version: 1.0
 * @CreateDate: 2022-09-02
 * @Description: 加班公众假日定时修改
 * @ModifyLog:
 **/

public class WeaJbgzjrCronJob extends BaseCronJob {
    @Override
    public void execute() {
        String curDate = DateUtil.getCurrentDate();
        BaseBean baseBean = new BaseBean();
        baseBean.writeLog( ">>>>WeaJbgzjrCronJob>>>>>curDate="+curDate );
        RecordSet rs = new RecordSet(  );
        rs.executeQuery("select rq from uf_jbgzjr");
        while (rs.next()){
            String rq = Util.null2String(rs.getString("rq"));
            rs.executeUpdate("update kq_flow_overtime set changetype=1 where belongdate='"+rq+"'");
        }

    }

}
